package object;

public class User {

    private int uid;//id
    private String uname;//用户名
    private String upassword;//密码
    private String utype;//账户类型

    public User() {
    }

    public User(int uid, String uname, String upassword, String utype) {
        this.uname = uname;
        this.uid = uid;
        this.upassword = upassword;
        this.utype = utype;
    }

    //修改字段
    public void updateUid(int id) {
        this.uid = id;
    }

    public void updateUname(String uname) {
        this.uname = uname;
    }

    public void updateUpwd(String upassword) {
        this.upassword = upassword;
    }

    public void updateUtype(String utype) {
        this.utype = utype;
    }

    //获取字段
    public int getUid() {
        return uid;
    }

    public String getUname() {
        return uname;
    }

    public String getUpassword() {
        return upassword;
    }

    public String getUtype() {
        return utype;
    }
}
